-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-16531][SQL][TEST] Remove timezone setting from DataFrameTimeWindowingSuite #14170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
cc @marmbrus |
|
Test build #62206 has finished for PR 14170 at commit
|
|
LGTM, can you make a JIRA? Its a little scary to change tests w/o one in case there is flakiness. |
|
We should put this in 2.0 for whoever merges. |
|
Created JIRA SPARK-16531 |
|
Thanks, merging to master and 2.0 |
|
It may be a secondary point, but |
|
All the tests in SQL are written to assume |
|
They should extend a test that explicitly sets that if so, or else it only happens to be set because of test ordering. The issue really is that it gets set for all remaining tests not in SQL. That could be OK; set to something fixed is better than defaulting to the local value. But then even that depends on whether SQL tests ran, and when and in what JVM. |
|
I think thats where we are today. All query tests use LA and the harness configures that. The problem before this PR was this one suite was setting LA (due to its base class), and then UTC (due to its own before/after all), and that was messing with other tests that assume LA. |
|
Yes, I got that, the problem is (potentially) in the non-SQL tests. If nothing's failing today, probably is entirely fine in practice, but this could have been made more robust while we're here. |
|
Oh, sorry, I see what you are saying, although I'm not sure I agree with the conclusion. Given that tests can run in parallel I don't think you actually want to toggle back and forth between timezones. I actually think that was causing the flakeyness we are trying to fix. In contrast, setting the default timezone to something fixed across all suites in Spark is idempotent. So, if any suite that cares about the default timezone just sets it to |
|
Agree. I'd rather fix a timezone for all tests. Some tests don't happen to set one; I know some use GMT elsewhere. Well, it's an issue for another day, to standardize it if it causes enough pain at some point. |
What changes were proposed in this pull request?
It's unnecessary.
QueryTestalready sets it.